"""muti URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,re_path,include

import apps.web.views
from apps.web import views
urlpatterns = [
    # # path('admin/', admin.site.urls),
    # path('home/',views.home),
    # path('news/<int:nid>/',views.news),#动态网址，整型
    # path('article/',views.article),
    # path('comment/<str:year>',views.comment),  #字符串，不包含/，path支持路径/
    # path('party/<slug:member>',views.party),#数字+字母+下划线+-
    # re_path(r'users/(\d+)/',views.users),
    # re_path(r'account/(\w+)/',views.account),
    # re_path(r'video/(\w+-\d+)/',views.video),
    # re_path(r'audio/(\w+-\d+)/(\d+)/',views.audio),
    # re_path(r'recoder/(?P<xxid>\w+-\d+)/(?P<yyid>\d+)/',views.recoder),
    path('api/',include("apps.api.urls")),
    path('web/',include("apps.web.urls")),
]
